<template>
  <div id="app">
     <div class="content">
       <div class="backtop">给这个页面写点内容testpage</div>
       <el-backtop target=".content .backtop"></el-backtop>
     </div>
     <router-link to="/test">点我 </router-link>
        <router-link to="/index">index</router-link>s
        <el-button type="primary">主要按钮</el-button>
        <el-button type="success">成功按钮</el-button>
        <el-button type="info">信息按钮</el-button>
        <el-button type="warning">警告按钮</el-button>
        <el-button type="danger">危险按钮</el-button>       
  </div>
</template>  

<script>
export default{
  name:'testPage'
}
</script>

<style>
html,body {
  height: 1000px;
}
#app {
 height: 1000px;
}
.content {
   height: 100%;
} 
.backtop {
    overflow: scroll;
    height: 100%;
} 
</style>